package com.cww.study.base;

/**
 * @program: myes
 * @description:
 * @author: 陈英俊
 * @create: 2021-09-19 15:33
 */
public class SysCode {


    public static final String LOGIN_KEY = "login:";

    /**
     * 模块类型
     */
    public enum ModelType {

        USER("user", "英雄"),
        STUDENT("student", "学生"),
        TEST("test", "测试"),
        ISNULL("null", "null");
        private String code;
        private String name;

        ModelType(String code, String name) {
            this.code = code;
            this.name = name;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }

    /**
     * 操作内容
     */
    public enum OperateContent {
        /**
         * 提交
         */
        SUBMIT("提交"),
        AUDIT("审核"),
        EXPORT("导出"),
        REPLY("回复"),
        CHECK("核验"),
        ;
        /**
         * 操作内容
         */
        private String content;

        OperateContent(String content) {
            this.content = content;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }
    }


    public interface PDF {
        String NAME = "re";
        String FTLNAME = "实地核查情况记录表.ftl";
        String CONTENT_TYPE = "application/x-msdownload";
        String PDFNAME = "实地核查情况记录表.pdf";
        String CODEUTF_8 = "UTF-8";
        String CD = "Content-Disposition";
        String AF = "attachment;filename=";
    }


    public interface STATE {
        String USE = "0";// 启用
        String USE_NAME="启用";
        String NO_USE = "1"; // 禁用
        String NO_USE_NAME = "禁用";
    }

    public interface DELETE {
        String NO_DELETE = "0";
        String DELETE = "1";
    }

    public interface ROlE {
        String USER = "0";
        String USER_STR="用户";
        String SUPER_ADMIN = "1";
        String SUPER_ADMIN_STR="管理员";
    }

    public static final String SYSTEM_SET_KEY = "system";
    public static final String BOY = "男";
    public static final String GIRL = "女";
}
